﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="PetShop._Default" StylesheetTheme="Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
      <div style="margin-bottom:10px">
        <span style="margin-right:30px">欢迎: <asp:LoginName ID="LoginName1" runat="server" /></span>
        <span><asp:LoginStatus ID="LoginStatus1" LoginText="登录" LogoutText="注销" runat="server" /></span></div>
    <div>
     <asp:DataList runat="server" ID="DataListProducts" 
            onitemcommand="DataListProducts_ItemCommand">
        <ItemTemplate>
            <div>
                <asp:Image runat="server" ID="ImagePic" CssClass = "img" ImageUrl='<%#Eval("Picture") %>' />
                <span><b>ID:</b>&nbsp;<asp:Label style="display:inline" runat="server" ID="LabelProductID" Text='<%#Eval("ProductID") %>' ></asp:Label></span>
                <span><b>名称:</b>&nbsp;<%#Eval("ProductName")%></span>
                <span><b>类别:</b>&nbsp;<%#Eval("Category")%></span>
                <span><b>价格:</b>&nbsp;<%#Eval("UnitPrice")%></span>
                <span><b>数量:</b>&nbsp;<%#Eval("Inventory")%></span>
                <span><b>简介: </b>&nbsp;<%#Eval("Description")%></span> 
                <span class="shoppingCart"><asp:LinkButton runat="server"  ID="LinkButtonShopingCart" Text ="加入购物车"></asp:LinkButton></span>              
            </div>
        </ItemTemplate>
        
        <SeparatorTemplate>
            <hr style="color:Black" />
        </SeparatorTemplate>
     </asp:DataList>
    </div>
    </form>
</body>
</html>
